package com.example.demo01.Service.webService;

import com.example.demo01.Dao.webDao.HospitalDao;
import com.example.demo01.Entity.webEntity.Hospital;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalService {

    @Autowired
    HospitalDao hospitalDao;

    /**
     * 获取所有医院信息点
     * */
    public List<Hospital> getAllHospitals(){
        return hospitalDao.getAllHospitals();
    }

}
